//
//  SingleBreath.h
//
//  Created by Eric van Riet Paap on 13-09-08.
//  Copyright __MyCompanyName__ 2008. All rights reserved.
//

#import <UIKit/UIKit.h>
#import <sqlite3.h>


@class trainingViewController;
@class historyViewController;
@class settingsViewController;
@class helpViewController;


@interface SingleBreath : UIApplication {
	UIWindow				*window;
	trainingViewController	*myTrainingViewController;
	historyViewController	*myHistoryViewController;
	historyViewController	*mySettingsViewController;
	helpViewController		*myHelpViewController;
	
	// SQLite database of all molecules
	sqlite3					*database;
	NSMutableArray			*trainingHistory;
}


@property (nonatomic, retain)	UIWindow				*window;
@property (nonatomic, retain)	trainingViewController	*myTrainingViewController;
@property (nonatomic, retain)	historyViewController	*myHistoryViewController;
@property (nonatomic, retain)	historyViewController	*mySettingsViewController;
@property (nonatomic, retain)	helpViewController		*myHelpViewController;
@property						sqlite3					*database;
@property (nonatomic, retain)	NSMutableArray			*trainingHistory;


//- (void)applicationDidFinishLaunching:(UIApplication *)application;
//- (void)applicationWillTerminate:(UIApplication *)application;


// Database access
- (BOOL)createEditableCopyOfDatabaseIfNeeded; 
- (void)connectToDatabase;
- (void)disconnectFromDatabase;
- (void)loadTrainingHistoryFromDatabase;
//- (void)loadInitialMoleculesFromDisk;
//- (void)loadMissingMoleculesIntoDatabase;

@end

